<?php

abstract class Rule_Abstract
{
	protected $_config = array('msg' => 'invalidate');

	function __construct($config)
	{
		if ($config)
		{
			$this -> _config = array_merge($this -> _config, $config);
		}

	}

	abstract function isValid($value, $params = null);

	public function getMsg()
	{
		return $this -> _config['msg'];
	}

}
